{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">
    {:token()}
    <div class="layui-form-item">
        <label class="layui-form-label">房间名称</label>
        <div class="layui-input-block">
            <input type="text" name="room_name" autocomplete="off" placeholder="房间名称" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">床位数量</label>
        <div class="layui-input-block">
            <input type="number" lay-affix="number" min="1" name="bed_num" lay-verify="required" autocomplete="off" placeholder="房间数量" class="layui-input">
        </div>
    </div>
   
    <div class="layui-form-item">
        <label class="layui-form-label">价格</label>
        <div class="layui-input-block">
            
            <input type="number" name="price" lay-affix="number" step="1" lay-precision="2" lay-verify="required" autocomplete="off" placeholder="价格" class="layui-input">
        </div>
    </div>
    
   
    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
layui.use('yznForm', function() {
    var yznForm = layui.yznForm;
    yznForm.bindevent($("form.layui-form"));
});
</script>
{/block}